package org.example.service.impl;

import org.example.entity.Page;
import org.example.service.IDownLoadService;
import org.example.util.PageDownLoadUtil;

/**
 * @ClassName : HttpClientDownLoadService  //类名
 * @Description : 页面下载实现类  //描述
 * @Author : 易嵘  //作者
 * @Date: 2021-03-03 16:52  //时间
 */
public class HttpClientDownLoadServiceImpl implements IDownLoadService {
    @Override
    public Page download(String url) {
        Page page = new Page();
        page.setContent(PageDownLoadUtil.getPageContent(url));
        return page;
    }
}
